﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;

namespace KMeansClustering
{
    public partial class secondForm : Form
    {
        public secondForm(int [][]a)
        {
            InitializeComponent();

                Series series = null;
                for (int i = 0; i < a.Length; i++)
                {
                    //this.chart1.Series.Add("iteration " +i );
                    if (i != a.Length - 1)
                        series = this.chart1.Series.Add("iteration " + (i + 1));
                    else series = this.chart1.Series.Add("final partition");
                    series.Label = "#VAL{G}";
                    for (int j = 0; j < a[0].Length; j++)
                        // Add point.
                        //series1.Points.AddXY(Convert.ToString(j), allIterationPartition[i][j]);
                        series.Points.AddXY(Convert.ToString(j + 1), a[i][j]);

                }
        }
    }
}
